﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects
{
    public class RestaurantArea : BusinessObject
    {
        public RestaurantArea()
        {
            AddRule(new ValidateRequired("RestaurantAreaCode"));
            AddRule(new ValidateLength("RestaurantAreaCode", 0, 20));

            AddRule(new ValidateRequired("RestaurantAreaName"));
            AddRule(new ValidateLength("RestaurantAreaName", 0, 255));
        }

        public RestaurantArea(string restaurantAreaId, string restaurantAreaCode, string restaurantAreaName,
                                string description, string restaurantId, bool isActive)
            : this()
        {
            RestaurantAreaID = restaurantAreaId;
            RestaurantAreaCode = restaurantAreaCode;
            RestaurantAreaName = restaurantAreaName;
            Description = description;
            RestaurantID = restaurantId;
            IsActive = isActive;
        }

        public string RestaurantAreaID { get; set; }

        public string RestaurantAreaCode { get; set; }

        public string RestaurantAreaName { get; set; }

        public string Description { get; set; }

        public string RestaurantID { get; set; }

        public bool IsActive { get; set; }
    }
}
